<?php if(count($data['data'])>1):?>
	<table>
		<tr>
	<?php foreach($data['data'] as $key=>$val):?>
		<?php if($key!=0 && $key % 5 == 0):?></tr><tr><?php endif;?>
		<td valign="top" style="text-align:center">
				<a href="<?php echo $this->baseUrl("/videopodcast/index/{$val['id']}"); ?>"><img src="<?php echo($val['thumburl']);?>" alt="<?php echo $val['title']; ?>" /></a>
				<p><?php echo $val['title']; ?></p>
		</td>
	<?php endforeach;?>
		</tr>
	</table>
	<?php if($data['paging'] !=""):?>
		<?php echo($data['link']); ?>
	<?php endif;?>

<?php else:?>

	<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
	<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=reazulk"></script>

	<?php if(!empty($data['data'])):?>
		<?php foreach($data['data'] as $key=>$val):?>
			<div style="margin:10px  auto  20px; auto;padding:10px;width:500px;">
				<div style="clear:both"></div>
				<p><strong><?php echo($val['title']); ?></strong></p>
				<p><?php echo $val['videocode']; ?></p>
				<p>Published: <?php echo App::Helper('Date')->dateFormated($val['entry_date']);?>
				<p><?php echo $val['description']; ?></p>
					<div class="addthis_toolbox addthis_default_style " style="float:right">
					<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
					<a class="addthis_button_tweet"></a>
					<a class="addthis_counter addthis_pill_style"></a>
				</div>
			</div>
		<?php endforeach;?>
	<?php else:?>
		<h2 style="text-align:center"><?php echo $this->__('No video publisehed yet.'); ?></h2>
	<?php endif;?>
<?php endif;?>
